-- GENERATED SPELL FOR [Thistle Cub] --


function spell0_6789(pUnit, Event) --@Ravage,n/a--
pUnit:FullCastSpellOnTarget(3242,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6789', 2251, 1)
end

function Sorts_6789(pUnit, Event)
local choix_sorts_6789 = math.random(0, 0)
if choix_sorts_6789 == 0 then
pUnit:RegisterEvent('spell0_6789', 1, 1)
end
end

function mob6789_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6789', math.random(1500, 3000), 1)
end

function mob6789_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6789_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6789_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6789, 1, 'mob6789_Action')
RegisterUnitEvent(6789, 2, 'mob6789_Leave')
RegisterUnitEvent(6789, 3, 'mob6789_Kill')
RegisterUnitEvent(6789, 4, 'mob6789_Die')
